package charactergear;

import java.util.ArrayList;
import java.util.List;

public class CharacterItem implements Comparable<CharacterItem> {

	private float dps;
	private CharacterGearType itemGearType;
	private Integer itemId;
	private String itemIconId;
	private String itemName;
	private Integer itemLevel;
	private Integer itemDurability;
	private ArmorRarity itemRarity; // Read docu for ArmorRarity..
	
	private Integer enchantId;
	
	private List<Integer> gems;
	
	@Override
	public int compareTo(CharacterItem o) {
		return (dps > o.dps) ? 1 : 0; 
	}
	
	
	
	/*
	 * GEtters and setters... No logic below this line!!!
	 */
	
	public CharacterGearType getItemGearType() {
		return itemGearType;
	}

	public void setItemGearType(CharacterGearType itemGearType) {
		this.itemGearType = itemGearType;
	}

	public Integer getItemId() {
		return itemId;
	}

	public void setItemId(Integer itemId) {
		this.itemId = itemId;
	}

	public String getItemIconId() {
		return itemIconId;
	}

	public void setItemIconId(String itemIconId) {
		this.itemIconId = itemIconId;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public Integer getItemLevel() {
		return itemLevel;
	}

	public void setItemLevel(Integer itemLevel) {
		this.itemLevel = itemLevel;
	}

	public Integer getItemDurability() {
		return itemDurability;
	}

	public void setItemDurability(Integer itemDurability) {
		this.itemDurability = itemDurability;
	}

	public ArmorRarity getItemRarity() {
		return itemRarity;
	}

	public void setItemRarity(ArmorRarity itemRarity) {
		this.itemRarity = itemRarity;
	}

	public Integer getEnchantId() {
		return enchantId;
	}

	public void setEnchantId(Integer enchantId) {
		this.enchantId = enchantId;
	}

	public ArrayList<Integer> getGems() {
		return (ArrayList<Integer>) gems;
	}

	public void setGems(ArrayList<Integer> gems) {
		this.gems = (ArrayList<Integer>) gems;
	}
	
}
